<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsp/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="renderer" content="webkit">
	<meta http-equiv="Cache-Control" content="no-siteapp"/>
 
	<link rel="stylesheet" href="${ctx}/assets/css/amazeui.min.css">
	<link rel="stylesheet" href="${ctx}/assets/css/admin.css">
	<link rel="stylesheet" href="${ctx}/assets/css/app.css">
</head>
<body>

<header class="am-topbar am-topbar-inverse admin-header">
	<div class="am-topbar-brand"><img alt="logo" heigth="50" src="image/logo.png"></div>
</header>

<div class="am-cf admin-main">
	<div class="admin-content">
		<div class="admin-content-body">
			<div class="am-u-sm-12 am-u-md-3 am-u-md-centered">
				<div class="am-cf am-padding am-padding-vertical-lg am-padd-top-150">
					<div class="am-fl am-cf"><strong class="am-text-primary am-text-lg"> 登 录 </strong></div>
				</div>
				
				<form action="${ctx}/login/login" method="post" class="am-form am-form-horizontal">
					<div class="am-form-group">
						<input type="text" id="username" name="username" placeholder=" 用 户 名 " required>
					</div>
					<div class="am-form-group">
						<input type="password" id="password" name="password" placeholder=" 密   码 " required>
					</div>
					<div class="am-form-group">
						<button type="submit" id="btn_login" class="am-btn am-btn-primary am-u-sm-12"> 登 录 </button>
					</div>
					<div class="am-form-group">
						<button type="button" id="btn_to_register" class="am-btn am-btn-default am-u-sm-12"> 注 册 </button>
					</div>
				</form>
				<input id="msg" hidden value='${requestScope.msg}'>
			</div>
		</div>
	</div>
</div>



<!--[if (gte IE 9)|!(IE)]><!-->
<script src="${ctx}/assets/js/jquery.min.js"></script>
<!--<![endif]-->
<script src="${ctx}/assets/js/amazeui.min.js"></script>
<script src="${ctx}/assets/js/app.js"></script>

<script>

$(function() {
	if($("#msg").val() != '') {
		alert($("#msg").val());
		$("#msg").val("");
	}
});

$("#btn_to_register").click(function(){
	location.href= "${ctx}/register.jsp";
});
</script>


</body>
</html>